package com.groupe_A.metier;

import java.util.Date;

/**
 * @author mohssine
 * @version 1.0
 * @created 30-avr.-2013 14:45:36
 */
public class DemandeAttestation {

	
	private Long idDemande;
	private Date dateDemande;
	private Boolean etat;
	public DemandeAttestation(){

	}
	
	

	public DemandeAttestation(Date dateDemande, Boolean etat) {
		this.dateDemande = dateDemande;
		this.etat = etat;
	}



	public Date getDateDemande() {
		return dateDemande;
	}

	public void setDateDemande(Date dateDemande) {
		this.dateDemande = dateDemande;
	}

	public Boolean getEtat() {
		return etat;
	}

	public void setEtat(Boolean etat) {
		this.etat = etat;
	}



	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((dateDemande == null) ? 0 : dateDemande.hashCode());
		result = prime * result + ((etat == null) ? 0 : etat.hashCode());
		result = prime * result
				+ ((idDemande == null) ? 0 : idDemande.hashCode());
		return result;
	}



	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		DemandeAttestation other = (DemandeAttestation) obj;
		if (dateDemande == null) {
			if (other.dateDemande != null)
				return false;
		} else if (!dateDemande.equals(other.dateDemande))
			return false;
		if (etat == null) {
			if (other.etat != null)
				return false;
		} else if (!etat.equals(other.etat))
			return false;
		if (idDemande == null) {
			if (other.idDemande != null)
				return false;
		} else if (!idDemande.equals(other.idDemande))
			return false;
		return true;
	}



	@Override
	public String toString() {
		return "DemandeAttestation [idDemande=" + idDemande + ", dateDemande="
				+ dateDemande + ", etat=" + etat + "]";
	}

	

}